const scriptSources = [
  // 埋点
  `<script src="//s.thsi.cn/cb?cd/ths-frontend-common-lib-container/v1.2.4/;common/bridge.js;business/stat.js"></script>`,
  // 分布柱状图
  `<script src="//s.thsi.cn/staticS3/mobileweb-upload-static-server.js/m/atom/564b6958-55f5-473c-a2ed-f629b1cecd9a.js"></script>`,
  // 联动柱状图
  `<script src="//s.thsi.cn/staticS3/mobileweb-upload-static-server.js/m/atom/ac6180a1-a52c-4342-96a3-80d8fd8515fc.js"></script>`,
  // vue
  `<script src="//s.thsi.cn/cd/ths-frontend-common-lib-container/v1.3.15/common/vue/2.7.14.min.js"></script>`,
  // 客服中心
  `<script src="//s.thsi.cn/cd/b2cweb-fe-common-resource-pod/js/fee-ui/1.0.1/fee-helper.umd.js"></script>`,
  // 表格
  `<script src="//s.thsi.cn/staticS3/mobileweb-upload-static-server.js/m/atom/45ab3fc0-4bb9-4e3e-b07c-64a2c5ffe37e.js"></script>`,
  `<script src="//s.thsi.cn/cd/iwc-web-ai-component-sync/bar@1.0.7index.js"></script>`,
  `<script src="//s.thsi.cn/cd/iwc-web-ai-component-sync/line@1.0.9index.js"></script>`,
  `<script src="//s.thsi.cn/cd/iwc-web-ai-component-sync/radar@1.0.4index.js"></script>`,
  // d3新图表
  `<script src="//s.thsi.cn/cd/iwc-datav-d3-charts/d3_charts_0.4.31.js"></script>`,
  // better-scroll
  `<script src="//s.thsi.cn/js/m/lib/scripts/bscroll.min.js"></script>`,
];

export default defineAppConfig({
  routes: [
    {
      path: '/all',
      name: 'All',
      source: './pages/Home/index.vue',
      scripts: scriptSources,
    },
    {
      path: '/search',
      name: 'Search',
      source: './pages/Home/searchPage.vue',
      // documentName: 'search2',
      scripts: scriptSources,
    },
    {
      path: '/purchased',
      name: 'Purchased',
      source: './pages/Purchased/Index.vue',
      scripts: scriptSources,
    },
    {
      path: '/stock',
      name: 'Stock',
      source: './pages/StockDiagnosis/index.vue',
      scripts: scriptSources,
    },
    {
      path: '/pk',
      name: 'Pk',
      source: './pages/Pk/index.vue',
      scripts: scriptSources,
    },
    {
      path: '/pksearch',
      name: 'PkSearch',
      source: './pages/Pk/search.vue',
      scripts: scriptSources,
    },
    {
      path: '/rank',
      name: 'Rank',
      source: './pages/Rank/index.vue',
      scripts: scriptSources,
    },
    {
      path: '/regionrank',
      name: 'RegionRank',
      source: './pages/Rank/regionRank.vue',
      scripts: scriptSources,
    },
    {
      path: '/intro/:id?',
      name: 'Intro',
      source: './pages/Intro/index.vue',
      scripts: scriptSources,
    },
  ],

  spaConfig: {
    documentPath: '../public/index.html',
    beforeRender: './beforeRender.js',
    scripts: scriptSources,
  },
});
